import request from '@/utils/request'

// 查询教职员工列表
export function listStaff (query) {
  return request({
    url: '/system/staff/list',
    method: 'get',
    params: query
  })
}

// 查询教职员工详细
export function getStaff (staffId) {
  return request({
    url: '/system/staff/' + staffId,
    method: 'get'
  })
}

// 新增教职员工
export function addStaff (data) {
  return request({
    url: '/system/staff',
    method: 'post',
    data: data
  })
}

// 修改教职员工
export function updateStaff (data) {
  return request({
    url: '/system/staff',
    method: 'put',
    data: data
  })
}

// 删除教职员工
export function delStaff (staffId) {
  return request({
    url: '/system/staff/' + staffId,
    method: 'delete'
  })
}

// 导入教职员工
export function importData (data) {
  return request({
    url: '/system/staff/importData',
    method: 'post',
    data: data
  })
}
export function queryDeptStaffCounts () {
  return request({
    url: '/system/staff/deptStaffCount',
    method: 'get',
    data: null
  })
}
